using System;
using NHibernate.Criterion;

namespace FwkLight.Domain.Fetching
{
  public class FetchingFilterGt : FetchingFilter
  {
    public FetchingFilterGt ( string propertyName, object value, IFetchingPart parent )
      : base(propertyName, value, parent)
    {
    }

    public override void ApplyFilterOn ( DetachedCriteria criteria )
    {
      criteria.Add(Restrictions.Gt(Parent.Alias + "." + PropertyName, Value));
    }
  }
}